define(['jquery', 'highstock', 'highstockZhCn'], function($) {
    'use strict';

    $(function() {
        $.getJSON('https://data.jianshukeji.com/jsonp?filename=json/aapl-c.json&callback=?', function(data) {
            var data = [
                [1147651200000, 67.79],
                [1147737600000, 64.98],
                [1147824000000, 65.26],
                [1147910400000, 63.18],
                [1147996800000, 64.51],
                [1148256000000, 63.38],
                [1148342400000, 63.15],
                [1148428800000, 63.34],
                [1148515200000, 64.33],
                [1148601600000, 63.55],
                [1148947200000, 61.22],
                [1149033600000, 59.77],
            ];
            var data1 = [
                [1147651200000, 17.79],
                [1147737600000, 24.98],
                [1147824000000, 35.26],
                [1147910400000, 43.18],
                [1147996800000, 54.51],
                [1148256000000, 73.38],
                [1148342400000, 63.15],
                [1148428800000, 53.34],
                [1148515200000, 44.33],
                [1148601600000, 33.55],
                [1148947200000, 21.22],
                [1149033600000, 9.77],
            ];
            $('#container').highcharts('StockChart', {
                rangeSelector: {
                    selected: 1
                },
                title: {
                    text: ''
                },
                rangeSelector: {
                    enabled: false
                },
                exporting: {
                    enabled: false
                },
                navigator: {
                    enabled: false
                },
                scrollbar: {
                    enabled: false
                },
                credits: {
                    enabled: false
                },
                legend: {
                    enabled: !false
                },
                yAxis: {
                    opposite: false
                },
                tooltip: {
                    pointFormat: '{series.name}: <b>{point.y}</b><br/>',
                },
                series: [{
                    name: 'test01',
                    data: data,
                    type: 'area',
                    threshold: null,
                    tooltip: {
                        valueDecimals: 2,
                    },
                }, {
                    name: 'test02',
                    data: data1,
                    type: 'area',
                    threshold: null,
                    tooltip: {
                        valueDecimals: 2,
                    },
                }]
            });
        });
        //
    });


    console.log('index');
     
});
